TaskFormR = new function(){
  this.click = function(item) {
    act   = RouterC.getAttrUpTheTree($(item).parent(),'act');
    taskId   = RouterC.getAttrUpTheTree($(item).parent(),'taskId');
    button   = $(item).attr('itemId');
    switch(button) {
      case 'save':
        if(act == 'addTask') {
          TaskC.addTask(taskId);
        }
        else if(act == 'updateTask') {
          TaskC.updateTask(taskId);
        }
        else {
          UtilC.showDebugMessage('TaskFormR - TaskC.click.save dont know what to do with the ' + action + ' action');
        }
        break;
      case 'cancel':
        TaskC.showNodeData({id:taskId});
        break;
      default:
        UtilC.showDebugMessage('TaskFormR.click dont know what to do with the ' + button + ' button');
        break;
    }
  }
}